Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RAC][Observability] Prevent unneeded re-renders of tgrid on opening alert flyout #108781

Conversation

kqualters-elastic
Copy link
Contributor

Summary

The selected flyout alert prop was unnecessarily causing the leadingControlColumns property of tgrid to change, and thus cause the entire EuiDataGrid to re-render each time an alert was selected or deselected. This pr rearranges the component tree so that no longer happens, compare the scroll position of the before/after gifs below as an example.

Before:
obs_bad_rendering
After:
obs_stop_flyout_rerenders

@kqualters-elastic kqualters-elastic added release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting Security Solution Threat Hunting Team auto-backport Deprecated - use backport:version if exact versions are needed Theme: rac label obsolete Feature:RAC label obsolete v7.15.0 Feature:Observability RAC 8.0.0 labels Aug 16, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@mgiota mgiota self-requested a review August 16, 2021 21:35
Copy link
Contributor

@mgiota mgiota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
observability 483.6KB 483.6KB +22.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kqualters-elastic kqualters-elastic merged commit 34eb8c6 into elastic:master Aug 16, 2021
@kqualters-elastic kqualters-elastic deleted the prevent-rerenders-observability-flyout branch August 16, 2021 23:05
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 16, 2021
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Aug 17, 2021
#108805)

Co-authored-by: Kevin Qualters <56408403+kqualters-elastic@users.noreply.github.com>
@lukasolson lukasolson added v8.0.0 and removed 8.0.0 labels Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Observability RAC Feature:RAC label obsolete release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting Security Solution Threat Hunting Team Theme: rac label obsolete v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants